#include "Coin.h"
Coin::Coin(D3DXVECTOR2 position,EState state) : GameObject(position, EObjectType::ECoin,state)
{
	m_pSprite = new CSprite(ResourceManager::GetIns()->GetTexture(EResource::Coin_ID),7,1,7,0,6);
	m_pSprite->m_TimeAni = 0.1f;
}

Coin::~Coin()
{
	GameObject::~GameObject();
}

void Coin::Update(float dt)
{
	m_pSprite->Update(dt);
	m_position += m_velocity*dt*60;
}

